import request from '@/plugins/axios'

// 出入库接口
export default {
  // 列表
  warehouseList(params = {}) {
    return request.get('/stock/device/pageList', { params })
  },
  // 列表
  warehouseSystemList(params = {}) {
    return request.get('/stock_sys/findPageInfo', { params })
  },
  // 系统设置列表
  selectDevice(params = {}) {
    return request.get('/stock_sys/selectDevice', { params })
  },
  // 保存系统设置列表
  saveDevice(params = {},id) {
    return request.post('/stock_sys/saveMatch', { matchList:params,matchSysId:id })
  },
  // 回显系统设置列表
  showDevice(params = {}) {
    return request.get('/stock_sys/findDeviceMatch',  { params })
  },
  // 修改系统库列表
  editSysList(params = {}) {
    return request.post('/stock_sys/update', params)
  },
  // 查看详情
  getDetails(params = {}) {
    return request.get('/stock_sys/findDeviceInfoPage',  { params })
  },
  // 查看出入库详情
  getEquipmentDetails(params = {}) {
    return request.get('/stock/device/detail',  { params })
  }
}